package com.qf.controller;

import com.qf.pojo.resp.BaseResult;
import com.qf.service.PayTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class PayTypeController {

    @Autowired
    PayTypeService payTypeService;
    @RequestMapping("/paytype")
    public BaseResult type(){
        BaseResult all = payTypeService.findAll();
        return all;
    }
}
